package com.zhoutian.dao;

import com.github.pagehelper.Page;
import com.zhoutian.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);
    public void add(User user);
    public void setUserAndRole(Map map);
    public Page<User> findByCondition(String queryString);
    public void edit(User user);
    public User findById(Integer id);
    public void deleteAssocication(Integer id);
    public void deleteUserById(Integer id);
    public List<Integer> findRoleIdByUserId(Integer id);
    public int findUserName(String username);

}
